package cn.miao.constant;

/**
 * 基本常量
 *
 * @author MiaoDaWei
 * @date 2021/11/22
 */
public class BaseConst {
    public static final Integer ZERO = 0;

    /**
     * 通用状态:0:正常 1:有效
     */
    public static final Integer STATUS_VALID = 0;
    public static final Integer STATUS_INVALID = 1;

    /**
     * 登录表的状态,表名:t_login
     *
     * @author MiaoDaWei
     * @date 2021/11/22
     */
    public static class LoginState{
        /**
         * 登录类型:0是后台，1是前台
         */
        public static final Integer STATUS_TYPE_EMPL=0;
        public static final Integer STATUS_TYPE_USER=1;
    }

    /**
     * 登录对应套餐的常量,表名:t_login_meal
     *
     * @author MiaoDaWei
     * @date 2021/11/22
     */
    public static class LoginMealState {
        public static final Integer STATUS_WAIT_PAY = 0;
        public static final Integer STATUS_PAY_SUCCESS = 1;
        public static final Integer STATUS_PAY_EXRIPED = 2;
    }

    /**
     * 租户的状态,表名:t_tenant
     *
     * @author MiaoDaWei
     * @date 2021/11/22
     */
      public static class TenantState {
        /**
         * 状态:0待审核，1 审核通过 ， 2审核失败
         */
        public static final Integer STATUS_AUDIT_WAIT = 0;
        public static final Integer STATUS_AUDIT_SUCCESS = 1;
        public static final Integer STATUS_AUDIT_ERROR = 2;
    }

    /**
     * 员工的状态,表名:t_employee
     *
     * @author MiaoDaWei
     * @date 2021/11/22
     */
    public static class EmployeeState {
        /**
         * 员工类型:1平台普通员工 ，2平台客服人员，3平台管理员，4机构员工，5,机构管理员或其他
         */
        public static final Integer EMPLOYEE_TYPE_PLATFORM_ORDINARY = 1;
        public static final Integer EMPLOYEE_TYPE_PLATFORM_CUSTOMER = 2;
        public static final Integer EMPLOYEE_TYPE_PLATFORM_ADMIN = 3;
        public static final Integer EMPLOYEE_TYPE_TENANT_ORDINARY = 4;
        public static final Integer EMPLOYEE_TYPE_TENANT_ADMIN = 5;

        /**
         * 员工状态：0正常，1锁定，2注销
         */
        public static final Integer EMPLOYEE_STATE_VALID = 0;
        public static final Integer EMPLOYEE_STATE_LOOK = 1;
        public static final Integer EMPLOYEE_STATE_LOGOUT = 2;
    }

    /**
     * 课程的相关状态
     * @author MiaoDaWei
     * @date 2021/11/26
     */
    public static class CourseState{
        /**
         *课程状态，下线：0 ， 上线：1
         */
        public static final Integer COURSE_STATE_DOWN = 0;
        public static final Integer COURSE_STATE_UP = 1;

        /**
         * 收费规则：1免费，2收费
         */
        public static final Integer COURSE_MARKET_CHARGE_FREE = 1;
        public static final Integer COURSE_MARKET_CHARGE_TOLL = 2;

        /**
         * 课程资源类型: 0图片，1文件(zip) 2,视频(avi)
         */
        public static final Integer COURSE_RESOURCE_TYPE_IMG = 0;
        public static final Integer COURSE_RESOURCE_TYPE_FILE = 1;
        public static final Integer COURSE_RESOURCE_TYPE_AVI = 2;
    }
}
